package com.ladlee.validata.processor;

import org.springframework.web.context.request.ServletWebRequest;

/**
 * @Auther: dingchang
 * @Date: 2018/12/21 15:46
 * @Description: 验证码处理器接口规范，封装验证码处理逻辑
 */
public interface ValidateCodeProcessor {

    /**
     * 创建校验码
     *
     * @param request
     * @throws Exception
     */
    void create(ServletWebRequest request) throws Exception;

    /**
     * 校验验证码
     *
     * @param servletWebRequest
     * @throws Exception
     */
    void validate(ServletWebRequest servletWebRequest);
}
